<h1 style="text-align: center">Cadastrar <small>Usu&aacute;rio</small></h1>

<ul class="breadcrumb">
  <li><a href="<?php echo $this->baseUrl() ?>/index">Home</a> <span class="divider">/</span></li>
  <li class="active">Criar Usuário</li>
</ul>

<?php if (!empty($this->msg)): ?>
    <div class="alert alert-success alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        <?php echo $this->msg; ?>
    </div>
<?php endif; ?>

<form class="form-horizontal forms" role="form" method="post">
    <div class="form-group">
        <div class="col-sm-10">
            <div class="input-prepend input-append">
                <span class="add-on"><i class="icon-envelope"></i></span> 
                <input type="email" class="form-control" name="email" placeholder="Email" maxlength="80" title="O email será o login de acesso" required>
            </div>
        </div>
    </div>
    
    <div class="form-group">
        <div class="col-sm-10">
            <div class="input-prepend input-append">
                <span class="add-on"><i class="icon-user"></i></span> 
                <input type="text" class="form-control" name="nome" placeholder="Nome" maxlength="80" title="Digite seu nome" required>
            </div>
        </div>
    </div>    
    
    <div class="form-group">
        <div class="col-sm-10">
            <label class="radio">
                <input type="radio" name="Perfil_id" value="<?php echo TipoUsuario::USUARIO ?>" checked>
                Usuário
            </label>
            <label class="radio">
                <input type="radio" name="Perfil_id" value="<?php echo TipoUsuario::ADMINISTRADOR ?>">
                Administrador
            </label>    
        </div>
    </div> 
    
    <div class="form-group">
        <div class="col-sm-10">
            <div class="input-prepend input-append">
                <span class="add-on"><i class="icon-qrcode"></i></span> 
                <input type="password" class="form-control" name="senha" id="senha" placeholder="Senha" title="Digite sua senha" maxlength="20" required>
            </div>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10 btns-form">
            <button type="submit" class="btn btn-large btn-primary">Salvar</button>
            <button type="reset" class="btn btn-large btn-default">Limpar</button>
        </div>
    </div>
</form>
